*Regression table: model with ARWU vars included
*Trying xtpoisson instead of poi2hdfe

*reg1 Full sample (excl China) with FE and year effects
xtpoisson istudents_r i_migrants000_1 ltrade_1 istud000_r_3 gdppc_diff000_1 lschpop_1 pve_1 larticles_1 arwu100_1 arwu500_1 yeardum* if full_sample_excl_CHN==1 & year>=2005, vce(robust) fe
outreg2 using 2023regs6, dec(3) excel

*reg2 English-speaking OECD only
xtpoisson istudents_r i_migrants000_1 ltrade_1 istud000_r_3 gdppc_diff000_1 lschpop_1 pve_1 larticles_1 arwu100_1 arwu500_1 yeardum* if english_OECD==1 & year>=2005, vce(robust) fe
outreg2 using 2023regs6, dec(3) excel

*reg3 Non-English OECD only
xtpoisson istudents_r i_migrants000_1 ltrade_1 istud000_r_3 gdppc_diff000_1 lschpop_1 pve_1 larticles_1 arwu100_1 arwu500_1 yeardum* if NE_OECD==1 & year>=2005, vce(robust) fe
outreg2 using 2023regs6, dec(3) excel

*reg4 Non-OECD (excl China)
xtpoisson istudents_r i_migrants000_1 ltrade_1 istud000_r_3 gdppc_diff000_1 lschpop_1 pve_1 larticles_1 arwu100_1 arwu500_1 yeardum* if non_OECD_excl_CHN==1 & year>=2005, vce(robust) fe
outreg2 using 2023regs6, dec(3) excel

*reg5 Non-OECD (incl China)
xtpoisson istudents_r i_migrants000_1 ltrade_1 istud000_r_3 gdppc_diff000_1 lschpop_1 pve_1 larticles_1 arwu100_1 arwu500_1 yeardum* if N_OECD==1 & year>=2005, vce(robust) fe
outreg2 using 2023regs6, dec(3) excel
